package com.zczc.entity;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @ClassName: MessageGetter
* @Description: message_getter表对应的java bean类
* @author: yishui zhiyubujian@163.com
 */
@Table(name = "message_getter")
public class MessageGetter implements Serializable {
    /**
     * @Fields message_getter.id :
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY, generator = "select uuid()")
    private String id;

    /**
     * 用户id
     */
    /**
     * @Fields message_getter.user_id :用户id
     */
    @Column(name = "user_id")
    private String userId;

    /**
     * 消息id
     */
    /**
     * @Fields message_getter.message_id :消息id
     */
    @Column(name = "message_id")
    private String messageId;

    /**
     * 消息标题
     */
    /**
     * @Fields message_getter.message_title :消息标题
     */
    @Column(name = "message_title")
    private String messageTitle;

    /**
     * 消息内容
     */
    /**
     * @Fields message_getter.message_content :消息内容
     */
    @Column(name = "message_content")
    private String messageContent;

    /**
     * 消息链接
     */
    /**
     * @Fields message_getter.message_url :消息链接
     */
    @Column(name = "message_url")
    private String messageUrl;

    /**
     * 消息类型
     */
    /**
     * @Fields message_getter.message_type :消息类型
     */
    @Column(name = "message_type")
    private String messageType;

    /**
     * 推送时间
     */
    /**
     * @Fields message_getter.push_time :推送时间
     */
    @Column(name = "push_time")
    private Date pushTime;

    /**
     * 是否已读
     */
    /**
     * @Fields message_getter.readed :是否已读
     */
    private Boolean readed;

    /**
     * 逻辑删除
     */
    /**
     * @Fields message_getter.deleted :逻辑删除
     */
    private Boolean deleted;

    private static final long serialVersionUID = 1L;

    /**
     * @return id
     */
    /**
     * @return message_getter.id : 返回 
     */
    public String getId() {
        return id;
    }

    /**
     * @param id
     */
    /**
     * @param id of message_getter : 设置 
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 获取用户id
     *
     * @return user_id - 用户id
     */
    /**
     * @return message_getter.user_id : 返回 用户id
     */
    public String getUserId() {
        return userId;
    }

    /**
     * 设置用户id
     *
     * @param userId 用户id
     */
    /**
     * @param userId of message_getter : 设置 用户id
     */
    public void setUserId(String userId) {
        this.userId = userId;
    }

    /**
     * 获取消息id
     *
     * @return message_id - 消息id
     */
    /**
     * @return message_getter.message_id : 返回 消息id
     */
    public String getMessageId() {
        return messageId;
    }

    /**
     * 设置消息id
     *
     * @param messageId 消息id
     */
    /**
     * @param messageId of message_getter : 设置 消息id
     */
    public void setMessageId(String messageId) {
        this.messageId = messageId;
    }

    /**
     * 获取消息标题
     *
     * @return message_title - 消息标题
     */
    /**
     * @return message_getter.message_title : 返回 消息标题
     */
    public String getMessageTitle() {
        return messageTitle;
    }

    /**
     * 设置消息标题
     *
     * @param messageTitle 消息标题
     */
    /**
     * @param messageTitle of message_getter : 设置 消息标题
     */
    public void setMessageTitle(String messageTitle) {
        this.messageTitle = messageTitle;
    }

    /**
     * 获取消息内容
     *
     * @return message_content - 消息内容
     */
    /**
     * @return message_getter.message_content : 返回 消息内容
     */
    public String getMessageContent() {
        return messageContent;
    }

    /**
     * 设置消息内容
     *
     * @param messageContent 消息内容
     */
    /**
     * @param messageContent of message_getter : 设置 消息内容
     */
    public void setMessageContent(String messageContent) {
        this.messageContent = messageContent;
    }

    /**
     * 获取消息链接
     *
     * @return message_url - 消息链接
     */
    /**
     * @return message_getter.message_url : 返回 消息链接
     */
    public String getMessageUrl() {
        return messageUrl;
    }

    /**
     * 设置消息链接
     *
     * @param messageUrl 消息链接
     */
    /**
     * @param messageUrl of message_getter : 设置 消息链接
     */
    public void setMessageUrl(String messageUrl) {
        this.messageUrl = messageUrl;
    }

    /**
     * 获取消息类型
     *
     * @return message_type - 消息类型
     */
    /**
     * @return message_getter.message_type : 返回 消息类型
     */
    public String getMessageType() {
        return messageType;
    }

    /**
     * 设置消息类型
     *
     * @param messageType 消息类型
     */
    /**
     * @param messageType of message_getter : 设置 消息类型
     */
    public void setMessageType(String messageType) {
        this.messageType = messageType;
    }

    /**
     * 获取推送时间
     *
     * @return push_time - 推送时间
     */
    /**
     * @return message_getter.push_time : 返回 推送时间
     */
    public Date getPushTime() {
        return pushTime;
    }

    /**
     * 设置推送时间
     *
     * @param pushTime 推送时间
     */
    /**
     * @param pushTime of message_getter : 设置 推送时间
     */
    public void setPushTime(Date pushTime) {
        this.pushTime = pushTime;
    }

    /**
     * 获取是否已读
     *
     * @return readed - 是否已读
     */
    /**
     * @return message_getter.readed : 返回 是否已读
     */
    public Boolean getReaded() {
        return readed;
    }

    /**
     * 设置是否已读
     *
     * @param readed 是否已读
     */
    /**
     * @param readed of message_getter : 设置 是否已读
     */
    public void setReaded(Boolean readed) {
        this.readed = readed;
    }

    /**
     * 获取逻辑删除
     *
     * @return deleted - 逻辑删除
     */
    /**
     * @return message_getter.deleted : 返回 逻辑删除
     */
    public Boolean getDeleted() {
        return deleted;
    }

    /**
     * 设置逻辑删除
     *
     * @param deleted 逻辑删除
     */
    /**
     * @param deleted of message_getter : 设置 逻辑删除
     */
    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", messageId=").append(messageId);
        sb.append(", messageTitle=").append(messageTitle);
        sb.append(", messageContent=").append(messageContent);
        sb.append(", messageUrl=").append(messageUrl);
        sb.append(", messageType=").append(messageType);
        sb.append(", pushTime=").append(pushTime);
        sb.append(", readed=").append(readed);
        sb.append(", deleted=").append(deleted);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MessageGetter other = (MessageGetter) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getMessageId() == null ? other.getMessageId() == null : this.getMessageId().equals(other.getMessageId()))
            && (this.getMessageTitle() == null ? other.getMessageTitle() == null : this.getMessageTitle().equals(other.getMessageTitle()))
            && (this.getMessageContent() == null ? other.getMessageContent() == null : this.getMessageContent().equals(other.getMessageContent()))
            && (this.getMessageUrl() == null ? other.getMessageUrl() == null : this.getMessageUrl().equals(other.getMessageUrl()))
            && (this.getMessageType() == null ? other.getMessageType() == null : this.getMessageType().equals(other.getMessageType()))
            && (this.getPushTime() == null ? other.getPushTime() == null : this.getPushTime().equals(other.getPushTime()))
            && (this.getReaded() == null ? other.getReaded() == null : this.getReaded().equals(other.getReaded()))
            && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getMessageId() == null) ? 0 : getMessageId().hashCode());
        result = prime * result + ((getMessageTitle() == null) ? 0 : getMessageTitle().hashCode());
        result = prime * result + ((getMessageContent() == null) ? 0 : getMessageContent().hashCode());
        result = prime * result + ((getMessageUrl() == null) ? 0 : getMessageUrl().hashCode());
        result = prime * result + ((getMessageType() == null) ? 0 : getMessageType().hashCode());
        result = prime * result + ((getPushTime() == null) ? 0 : getPushTime().hashCode());
        result = prime * result + ((getReaded() == null) ? 0 : getReaded().hashCode());
        result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
        return result;
    }
}